Uses trigonometric identities to simplify the expression entered.